﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ApiPrototype.Models
{
    public class UpdateDto
    {
        public UpdateDto() { }

        public UpdateDtoEntry<LessenroosterDto> Lessenrooster { get; set; }
        public UpdateDtoEntry<List<SP_EXAMEN_ENTRY>> Examenrooster { get; set; }
        public UpdateDtoEntry<List<STUDENT_BB_MEDEDELINGEN>> Mededelingen { get; set; }
        public UpdateDtoEntry<List<DienstDto>> Diensten { get; set; }
    }

    public class UpdateDtoEntry<T>
    {
        public int[] Delete { get; set; }
        public T Data { get; set; }

        public UpdateDtoEntry() { }

        public UpdateDtoEntry(int[] delete, T data)
        {
            this.Delete = delete;
            this.Data = data;
        }
    }
}